/**
 * @file
 * A JavaScript file for the theme.
 *
 * In order for this JavaScript to be loaded on pages, see the instructions in
 * the README.txt next to this file.
 */

// JavaScript should be made compatible with libraries other than jQuery by
// wrapping it with an "anonymous closure". See:
// - http://drupal.org/node/1446420
// - http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth
(function ($, Drupal, window, document, undefined) {
	
$(document).ready(function() {
	$('#ei-slider').eislideshow({
	 	animation: 'center',
		autoplay: true,
		slideshow_interval: 3000,
		titlesFactor: 0,
		thumbMaxWidth: 160
	});

	$('#slider').nivoSlider({  
		effect:"random",
        slices:15,
        boxCols:8,
        boxRows:4,
        animSpeed:500,
        pauseTime:3000,
        startSlide:0,
        directionNav:true,
        controlNav:false,
        controlNavThumbs:true,
        pauseOnHover:true,
        manualAdvance:false});
				
	$('#zx-slider').nivoSlider({
		directionNav: false,
		controlNav:false
	});
	
	$('#c-slider').nivoSlider({
		directionNav: false,
		controlNav:false
	});
	
	$('#slider-bs').nivoSlider({
		directionNav: false,
		controlNav:false
	});

});

$(document).ready(function() {
	var $data = $('#classic-left-cont');
	$('#classic-left-title a').click(
	function () {
		if($data.is(':hidden')){
		$data.fadeIn('slow');
		$(this).removeClass("vc");
		}else{
			$data.fadeOut('slow');
			$(this).addClass("vc");
		}
		return false;
	});
});

$(document).ready(function(){
	
	$('#accordion-1').accordion({
  		canToggle: true
  });
	
	$('#accordion-2').accordion({
  		canToggle: true
  });
	
	});

})(jQuery, Drupal, this, this.document);
